<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Session Handling</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.msession-unlock.html">msession_unlock</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intro.session.html">简介</a></div>
 <div class="up"><a href="refs.basic.session.html">Session 扩展</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="book.session" class="book">
 
 <h1 class="title">Session Handling</h1>
 

 
 
 

 







 

 








 







 







 







 









 






 







<ul class="chunklist chunklist_book"><li><a href="intro.session.html">简介</a></li><li><a href="session.setup.html">安装／配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="session.requirements.html">需求</a></li><li><a href="session.installation.html">安装</a></li><li><a href="session.configuration.html">运行时配置</a></li><li><a href="session.resources.html">资源类型</a></li></ul></li><li><a href="session.constants.html">预定义常量</a></li><li><a href="session.examples.html">范例</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="session.examples.basic.html">Basic usage</a></li><li><a href="session.idpassing.html">Passing the Session ID</a></li><li><a href="session.customhandler.html">Custom Session Handlers</a></li></ul></li><li><a href="session.upload-progress.html">Session Upload Progress</a></li><li><a href="session.security.html">Sessions and security</a></li><li><a href="ref.session.html">Session 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.session-cache-expire.html">session_cache_expire</a> — Return current cache expire</li><li><a href="function.session-cache-limiter.html">session_cache_limiter</a> — Get and/or set the current cache limiter</li><li><a href="function.session-commit.html">session_commit</a> — session_write_close 的别名</li><li><a href="function.session-decode.html">session_decode</a> — Decodes session data from a session encoded string</li><li><a href="function.session-destroy.html">session_destroy</a> — Destroys all data registered to a session</li><li><a href="function.session-encode.html">session_encode</a> — 将当前会话数据编码为一个字符串</li><li><a href="function.session-get-cookie-params.html">session_get_cookie_params</a> — Get the session cookie parameters</li><li><a href="function.session-id.html">session_id</a> — Get and/or set the current session id</li><li><a href="function.session-is-registered.html">session_is_registered</a> — 检查变量是否在会话中已经注册</li><li><a href="function.session-module-name.html">session_module_name</a> — Get and/or set the current session module</li><li><a href="function.session-name.html">session_name</a> — Get and/or set the current session name</li><li><a href="function.session-regenerate-id.html">session_regenerate_id</a> — Update the current session id with a newly generated one</li><li><a href="function.session-register-shutdown.html">session_register_shutdown</a> — Session shutdown function</li><li><a href="function.session-register.html">session_register</a> — Register one or more global variables with the current session</li><li><a href="function.session-save-path.html">session_save_path</a> — Get and/or set the current session save path</li><li><a href="function.session-set-cookie-params.html">session_set_cookie_params</a> — Set the session cookie parameters</li><li><a href="function.session-set-save-handler.html">session_set_save_handler</a> — Sets user-level session storage functions</li><li><a href="function.session-start.html">session_start</a> — Start new or resume existing session</li><li><a href="function.session-status.html">session_status</a> — Returns the current session status</li><li><a href="function.session-unregister.html">session_unregister</a> — Unregister a global variable from the current session</li><li><a href="function.session-unset.html">session_unset</a> — Free all session variables</li><li><a href="function.session-write-close.html">session_write_close</a> — Write session data and end session</li></ul></li><li><a href="class.sessionhandler.html">SessionHandler</a> — The SessionHandler class<ul class="chunklist chunklist_book chunklist_children"><li><a href="sessionhandler.close.html">SessionHandler::close</a> — Close the session</li><li><a href="sessionhandler.destroy.html">SessionHandler::destroy</a> — Destroy a session</li><li><a href="sessionhandler.gc.html">SessionHandler::gc</a> — Cleanup old sessions</li><li><a href="sessionhandler.open.html">SessionHandler::open</a> — Initialize session</li><li><a href="sessionhandler.read.html">SessionHandler::read</a> — Read session data</li><li><a href="sessionhandler.write.html">SessionHandler::write</a> — Write session data</li></ul></li><li><a href="class.sessionhandlerinterface.html">SessionHandlerInterface</a> — The SessionHandlerInterface class<ul class="chunklist chunklist_book chunklist_children"><li><a href="sessionhandlerinterface.close.html">SessionHandlerInterface::close</a> — Close the session</li><li><a href="sessionhandlerinterface.destroy.html">SessionHandlerInterface::destroy</a> — Destroy a session</li><li><a href="sessionhandlerinterface.gc.html">SessionHandlerInterface::gc</a> — Cleanup old sessions</li><li><a href="sessionhandlerinterface.open.html">SessionHandlerInterface::open</a> — Initialize session</li><li><a href="sessionhandlerinterface.read.html">SessionHandlerInterface::read</a> — Read session data</li><li><a href="sessionhandlerinterface.write.html">SessionHandlerInterface::write</a> — Write session data</li></ul></li></ul></div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.msession-unlock.html">msession_unlock</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intro.session.html">简介</a></div>
 <div class="up"><a href="refs.basic.session.html">Session 扩展</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
